home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1995 April / Internet Tools.iso / osi / isode / vmsisode / vmsisode80_tar.Z / vmsisode80_tar / sockit / gccinclude / x11 / decwdwtapplprog.h < prev    next >
Encoding:
C/C++ Source or Header  |  1990-04-24  |  25.0 KB  |  848 lines

  1. /*  DEC/CMS REPLACEMENT HISTORY, Element DECWDWTAPPLPROG.H */
  2. /*   9    31-MAR-1988 12:07:22 TREGGIARI "BL7.3 UPDATE" */
  3. /*   8    24-MAR-1988 15:46:40 TREGGIARI "Replace with completely new version" */
  4. /*  *7    27-FEB-1988 18:18:37 GEORGE "Add copyright" */
  5. /*  *6     8-FEB-1988 14:04:18 TREGGIARI "Fix misspelling of DwtToggle routines" */
  6. /*  *5     7-JAN-1988 13:03:53 TREGGIARI "Replace with completely new version" */
  7. /*  *4     5-JAN-1988 15:36:35 TREGGIARI "Replace with completely new version" */
  8. /*  *3    18-DEC-1987 14:05:52 TREGGIARI "Replace with completely new version" */
  9. /*  *2     2-NOV-1987 17:13:35 TREGGIARI "Replace with completely new version" */
  10. /*  *1     2-NOV-1987 14:52:44 ORGOVAN "Initial Entry" */
  11. /*  DEC/CMS REPLACEMENT HISTORY, Element DECWDWTAPPLPROG.H */
  12. /*
  13. *****************************************************************************
  14. **                                                                          *
  15. **                         COPYRIGHT (c) 1988 BY                            *
  16. **             DIGITAL EQUIPMENT CORPORATION, MAYNARD, MASS.                *
  17. **               ALL RIGHTS RESERVED                              *
  18. **                                                                          *
  19. **  THIS SOFTWARE IS FURNISHED UNDER A LICENSE AND MAY BE USED AND  COPIED  *
  20. **  ONLY  IN  ACCORDANCE  WITH  THE  TERMS  OF  SUCH  LICENSE AND WITH THE  *
  21. **  INCLUSION OF THE ABOVE COPYRIGHT NOTICE.  THIS SOFTWARE OR  ANY  OTHER  *
  22. **  COPIES  THEREOF MAY NOT BE PROVIDED OR OTHERWISE MADE AVAILABLE TO ANY  *
  23. **  OTHER PERSON.  NO TITLE TO AND OWNERSHIP OF  THE  SOFTWARE  IS  HEREBY  *
  24. **  TRANSFERRED.                                                            *
  25. **                                                                          *
  26. **  THE INFORMATION IN THIS SOFTWARE IS SUBJECT TO CHANGE  WITHOUT  NOTICE  *
  27. **  AND  SHOULD  NOT  BE  CONSTRUED  AS  A COMMITMENT BY DIGITAL EQUIPMENT  *
  28. **  CORPORATION.                                                            *
  29. **                                                                          *
  30. **  DIGITAL ASSUMES NO RESPONSIBILITY FOR THE USE OR  RELIABILITY  OF  ITS  *
  31. **  SOFTWARE ON EQUIPMENT WHICH IS NOT SUPPLIED BY DIGITAL.                 *
  32. **                                                                          *
  33. *****************************************************************************
  34. **++
  35. **  FACILITY:
  36. **
  37. **    < to be supplied >
  38. **
  39. **  ABSTRACT:
  40. **
  41. **    < to be supplied >
  42. **
  43. **  ENVIRONMENT:
  44. **
  45. **    < to be supplied >
  46. **
  47. **  MODIFICATION HISTORY:
  48. **
  49. **    < to be supplied >
  50. **
  51. **--
  52. **/
  53.  
  54. #define DECHINTS
  55.  
  56. #include <decw$include/Xlib.h>
  57. #include <decw$include/Intrinsic.h>
  58. #include <decw$include/Shell.h>
  59.  
  60. /* these definitions are duplicates of stuff in DECwDwtWidgetProg.h */
  61. /* but have different definitions to make certain data structures   */
  62. /* opaque to the application programmer                             */
  63.  
  64.  
  65. #ifndef WIDGETPROG
  66.  
  67. typedef long *DwtTextSource;
  68.  
  69. #endif
  70.  
  71. /* end of duplicate definitions */
  72.  
  73. /* definition for cut and paste */
  74.  
  75. typedef struct {
  76.     int DataId;
  77.     int PrivateId;
  78. } DwtClipboardPendingRec, *DwtClipboardPendingList;
  79.  
  80. /* 
  81.  * Enumerated constants and assocated resource manager stuff for
  82.  * use with type converters
  83.  */
  84.                             /* alignments */
  85.  
  86. #define DwtRAlignment            "Alignment"
  87. #define DwtCAlignment            "Alignment"
  88.  
  89. #define DwtAlignmentCenter        1
  90. #define DwtAlignmentBeginning        2
  91. #define DwtAlignmentEnd            3
  92.  
  93.                             /* label type */
  94.  
  95. #define DwtRLabelType            "LabelType"
  96. #define DwtCLabelType            "LabelType"
  97.  
  98. #define DwtText                1
  99. #define DwtPixmap            2
  100. #define DwtText16            3
  101. #define DwtTextWithAccelerator        4
  102. #define DwtText16WithAccelerator    5
  103.  
  104. #define DwtRLabelArray            "LabelArray"
  105.  
  106.                            /* togglebutton shapes */
  107. #define DwtRectangular            1
  108. #define DwtOval                2
  109.  
  110.                                 /* orientations */
  111. #define DwtROrientation            "Orientation"
  112. #define DwtCOrientation            "Orientation"
  113.  
  114. #define DwtOrientationVertical        1
  115. #define DwtOrientationHorizontal    2
  116.  
  117.                             /*  dialog styles */
  118. #define DwtRStyle            "Style"
  119. #define DwtCStyle            "Style"
  120. #define DwtModal            1
  121. #define DwtModeless            2
  122. #define    DwtWorkarea            3
  123.  
  124.                             /* menu types */
  125. #define DwtRMenuType            "MenuType"
  126. #define DwtCMenuType            "MenuType"
  127.  
  128. #define DwtMenuBarType            0
  129. #define DwtMenuWorkArea            1
  130. #define DwtMenuPulldown            2
  131. #define DwtMenuPopup            3
  132. #define DwtMenuOption            5
  133.  
  134.                             /* menu packing styles */
  135. #define DwtNmenuPacking        "menuPacking"
  136. #define DwtCMenuPacking        "MenuPacking"
  137. #define DwtRMenuPacking        "MenuPacking"
  138.  
  139. #define DwtMenuPackingTight    0
  140. #define DwtMenuPackingColumn    1
  141. #define DwtMenuPackingNone    2
  142.  
  143.                             /* file selection */
  144. #define DwtVMS            1
  145. #define DwtUNIX                2
  146. #define    DwtMSDOS        3
  147.  
  148.                             /* caution box */
  149. #define DwtNdefaultPushbutton    "defaultPushbutton"
  150. #define DwtCDefaultPushbutton    "DefaultPushbutton"
  151.  
  152. #define DwtYesButton        0
  153. #define DwtNoButton        1
  154. #define DwtCancelButton        2
  155.  
  156.  
  157.                             /* font unit positioning */
  158. #define DwtNunits        "units"
  159. #define DwtNfontX        "fontX"
  160. #define DwtNfontY        "fontY"
  161.  
  162. #define DwtFontUnits        0
  163. #define DwtPixelUnits        1
  164.  
  165. #define DwtCUnits        "Units"
  166. #define DwtCFontX        "FontX" 
  167. #define DwtCFontY        "FontY" 
  168.  
  169.                             /* cut and paste */
  170. #define ClipboardSuccess      1 
  171. #define ClipboardTruncate     2
  172. #define ClipboardFail         3
  173. #define ClipboardLocked       4
  174. #define ClipboardNoData       5
  175.  
  176. /* 
  177.  * resource names
  178.  */
  179.  
  180. #define DwtNmenuAlignment    "menuAlignment"
  181. #define DwtNradioAlwaysOne    "radioAlwaysOne"
  182. #define    DwtNconformToText    "conformToText"
  183. #define DwtNentryAlignment    "entryAlignment"
  184. #define DwtNadjustMargin    "adjustMargin"
  185. #define DwtNmenuRadio        "menuRadio"
  186. #define DwtNmenuIsHomogeneous    "menuIsHomogeneous"
  187. #define DwtNmenuEntryClass    "menuEntryClass"
  188. #define DwtNmenuNumColumns    "menuNumColumns"
  189. #define DwtNmenuType        "menuType"
  190. #define DwtNallowtopresize      "allowTopResizeRequest"
  191. #define DwtNalignment        "alignment"
  192. #define DwtNfont        "font"
  193. #define DwtNforeground        "foreground"
  194. #define DwtNlabel        "label"
  195. #define DwtNlabelType        "labelType"
  196. #define DwtNmarginHeight    "marginHeight"
  197. #define DwtNmarginWidth        "marginWidth"
  198. #define DwtNmarginLeft        "marginLeft"
  199. #define DwtNmarginRight        "marginRight"
  200. #define DwtNmarginTop        "marginTop"
  201. #define DwtNmarginBottom    "marginBottom"
  202. #define DwtNpixmap        "pixmap"
  203. #define DwtNstyle        "style"
  204. #define DwtNselection        "selection"
  205. #define DwtNspacing        "spacing"
  206. #define DwtNtranslations    "translations"
  207. #define DwtNoverrideRedirect    "overrideRedirect"
  208.  
  209. #define DwtNcallback        "callback"        /* remove ?? */
  210. #define DwtNexposeCallback    "exposeCallback"
  211. #define DwtNentryCallback    "entryCallback"
  212. #define DwtNselectCallback    "selectCallback"
  213. #define DwtNmapCallback        "mapCallback"
  214. #define DwtNunmapCallback    "unmapCallback"
  215. #define DwtNhelpCallback    "helpCallback"
  216. #define DwtNarmCallback        "armCallback"
  217. #define DwtNdisarmCallback    "disarmCallback"
  218. #define DwtNvalueChangedCallback "valueChangedCallback"
  219. #define DwtNactivateCallback    "activateCallback"
  220. #define DwtNfocusCallback    "focusCallback"
  221. #define DwtNunitIncCallback     "unitIncCallback"
  222. #define DwtNunitDecCallback     "unitDecCallback"
  223. #define DwtNpageIncCallback     "pageIncCallback"
  224. #define DwtNpageDecCallback     "pageDecCallback"
  225. #define DwtNdragCallback        "dragCallback"
  226. #define DwtNtoTopCallback       "toTopCallback"
  227. #define DwtNtoBottomCallback     "toBottomCallback"
  228. #define DwtNtoPositionCallback    "toPositionCallback"
  229. #define DwtNyesCallback        "yesCallback"
  230. #define DwtNnoCallback        "noCallback"
  231. #define DwtNcancelCallback    "cancelCallback"
  232.  
  233. #define DwtNhelpIcon        "helpIcon"
  234. #define DwtNtitle        "title"
  235. #define DwtNtitleType        "titleType"
  236. #define DwtNorientation        "orientation"
  237. #define DwtNentryBorder        "entryBorder"
  238. #define DwtNstate        "state"
  239. #define DwtNvisibleWhenOff    "visibleWhenOff"
  240. #define DwtNshape        "shape"
  241. #define DwtNbackgroundPixmap    "backgroundPixmap"
  242. #define DwtNborderPixmap    "borderPixmap"
  243. #define DwtNpullingCallback    "pullingCallback"
  244. #define DwtNsubMenuId        "subMenuId"
  245. #define DwtNcommandWindow    "commandWindow"
  246. #define DwtNworkWindow        "workWindow"
  247. #define DwtNmenuBar        "menuBar"
  248. #define DwtNhorizontalScrollBar    "horizontalScrollBar"
  249. #define DwtNverticalScrollBar    "verticalScrollBar"
  250. #define DwtNshown        "shown"
  251. #define DwtNinc            "inc"
  252. #define DwtNpageInc        "pageInc"
  253. #define DwtNmaxValue        "maxValue"
  254. #define DwtNminValue        "minValue"
  255. #define DwtNtranslations1     "translations1"
  256. #define DwtNtranslations2     "translations2"
  257. #define DwtNtext16        "text16"
  258. #define DwtNyesLabel        "yesLabel"
  259. #define DwtNyesLabelType    "yesLabelType"
  260. #define DwtNnoLabel        "noLabel"
  261. #define DwtNnoLabelType     "noLabelType"
  262. #define DwtNcancelLabel        "cancelLabel"
  263. #define DwtNcancelLabelType    "cancelLabelType"
  264. #define DwtNokLabel        "okLabel"
  265. #define DwtNokLabelType        "okLabelType"
  266. #define DwtNdefaultPosition    "defaultPosition"
  267. #define DwtNtextMergeTranslations "textMergeTranslations"
  268. #define DwtNbackground        "background"
  269. #define DwtNmaxLabel        "maxLabel"
  270. #define DwtNminLabel        "minLabel"
  271. #define DwtNmaxLabelType    "maxLabelType"
  272. #define DwtNminLabelType    "minLabelType"
  273. #define DwtNsliderLabel        "sliderLabel"
  274. #define DwtNsliderLabelType    "sliderLabelType"
  275. #define DwtNscaleWidth        "scaleWidth"
  276. #define DwtNscaleHeight        "scaleHeight"
  277. #define DwtNdecimalPoints    "decimalPoints"
  278. #define DwtNshowValue        "showValue"
  279. #define DwtNshowValueAutomatic    "showValueAutomatic"
  280. #define DwtNslider        "slider"
  281. #define DwtNsliderPixmap    "sliderPixmap"
  282. #define DwtNcompressExposure    "compressExposure"
  283. #define DwtNcompressMotion      "compressMotion"
  284. #define DwtNdefaultButton    "defaultButton"
  285. #define DwtNcancelButton    "cancelButton"
  286. #define DwtNpropagateColors    "propagateColors"
  287. #define DwtNhighlight        "highlight"
  288. #define DwtNhighlightPixmap    "highlightPixmap"
  289. #define DwtNpixmapOn        "pixmapOn"
  290. #define DwtNpixmapOff        "pixmapOff"
  291. #define DwtNhotSpotPixmap    "hotSpotPixmap"
  292. #define DwtNautoUnmanage    "autoUnmanage"
  293.  
  294. #define DwtNcreateCallback    "createCallback"    /* used by DRM only */
  295.  
  296. #define DwtNancestorSensitive    "ancestorSensitive"    /* cover Xt versions */
  297. #define DwtNdestroyCallback    "destroyCallback"
  298. #define DwtNx             "x"
  299. #define DwtNy            "y"
  300. #define DwtNheight        "height"
  301. #define DwtNwidth        "width"
  302. #define DwtNdepth        "depth"
  303. #define DwtNborderWidth        "borderWidth"
  304. #define DwtNborder        "border"
  305. #define DwtNsensitive        "sensitive"
  306. #define DwtNvalue        "value"
  307. #define DwtNmappedWhenManaged    "mappedWhenManaged"
  308.  
  309. #define DwtNeditable        "editable"
  310. #define DwtNmaxLength        "maxLength"
  311.  
  312. #define DwtNwordWrap        "wordWrap"
  313. #define DwtNblinkRate        "blinkRate"
  314. #define DwtNcols        "cols"
  315. #define DwtNrows        "rows"
  316. #define DwtNresizeWidth        "resizeWidth"
  317. #define DwtNresizeHeight    "resizeHeight"
  318.  
  319. #define DwtNtopPosition        "topPosition"
  320. #define DwtNoutput        "output"
  321. #define DwtNinput        "input"
  322. #define DwtNsource        "source"
  323. #define DwtNautoShowInsertPoint    "autoShowInsertPoint"
  324. #define DwtNinsertionPosition    "insertionPosition"
  325. #define DwtNitems        "items"            
  326. #define DwtNitemsCount        "itemsCount"
  327. #define DwtNselectedItems    "selectedItems"            
  328. #define DwtNselectedItemsCount    "selectedItemsCount"
  329. #define DwtNvisibleItemsCount    "visibleItemsCount"
  330. #define DwtNresize        "resize"
  331. #define DwtNsingleSelection     "singleSelection"
  332. #define DwtNsingleCallback      "singleCallback"
  333. #define DwtNsingleConfirmCallback "singleConfirmCallback"
  334. #define DwtNextendCallback      "extendCallback"
  335. #define DwtNextendConfirmCallback "extendConfirmCallback"
  336. #define DwtNbordHighlight    "bordHighlight"
  337. #define DwtNfillHighlight    "fillHighlight"
  338.  
  339. #define DwtNsystemPreference    "systemPreference"
  340. #define DwtNdirMask        "dirMask"
  341. #define DwtNread        "read"
  342. #define DwtNwrite        "write"
  343. #define DwtNexecute        "execute"
  344. #define DwtNdelete        "delete"
  345. #define DwtNfileSearchProc    "fileSearchProc"
  346. #define DwtNdone        "done"
  347. #define DwtNlistUpdated        "listUpdated"
  348. #define DwtNfiles        "files"
  349. #define DwtNfileCount        "fileCount"
  350.  
  351. #define DwtNprompt              "prompt"
  352. #define DwtNlines               "lines"
  353. #define DwtNhistory             "history"
  354. #define DwtNpromptType        "promptType"
  355. #define DwtNhistoryType        "historyType"
  356. #define DwtNtTranslation    "tTranslation"
  357. #define DwtNcommandEnteredCallback "commandEnteredCallback"
  358.  
  359. /*
  360.  * resource classes
  361.  */
  362.  
  363.  
  364. #define DwtCHighlight        "Highlight"
  365. #define DwtCHighlightPixmap    "HighlightPixmap"
  366. #define DwtCPropagateColors    "PropagateColors"
  367.  
  368. #define DwtCMenuAlignment    "MenuAlignment"
  369. #define DwtCRadioAlwaysOne    "RadioAlwaysOne"
  370. #define    DwtCConformToText    "ConformToText"
  371. #define    DwtCEntryBorder        "EntryBorder"
  372. #define DwtCAdjustMargin    "AdjustMargin"
  373. #define    DwtCMenuWidget        "MenuWidget"
  374. #define DwtCMenuRadio        "MenuRadio"
  375. #define DwtCMenuIsHomogeneous    "MenuIsHomogeneous"
  376. #define DwtCMenuEntryClass    "MenuEntryClass"
  377. #define    DwtCMenuNumColumns    "MenuNumColumns"
  378. #define DwtCHelpIcon        "HelpIcon"
  379.  
  380. #define DwtCTextPosition    "TextPosition"
  381. #define DwtCOutput        "Output"
  382. #define DwtCInput        "Input"
  383. #define DwtCSource        "Source"
  384. #define DwtCAutoShowInsertPoint    "AutoShowInsertPoint"
  385. #define DwtCTranslations    "Translations"
  386. #define DwtCInsertionPosition    "InsertionPosition"
  387. #define DwtCCompress        "Compress"
  388.  
  389. #define DwtCFont        "Font"
  390. #define DwtCWordWrap        "WordWrap"
  391. #define DwtCBlinkRate        "BlinkRate"
  392. #define DwtCForeground        "Foreground"
  393. #define DwtCMarginWidth        "MarginWidth"
  394. #define DwtCMarginHeight    "MarginHeight"
  395. #define DwtCMarginLeft        "MarginLeft" 
  396. #define DwtCMarginRight        "MarginRight"
  397. #define DwtCMarginTop        "MarginTop"
  398. #define DwtCMarginBottom    "MarginBottom"
  399. #define DwtCCols        "Cols"
  400. #define DwtCRows        "Rows"
  401. #define DwtCResizeWidth        "ResizeWidth"
  402. #define DwtCResizeHeight    "ResizeHeight"
  403.  
  404. #define DwtCValue        "Value"
  405. #define DwtCEditable        "Editable"
  406. #define DwtCMaxLength        "MaxLength"
  407.  
  408. #define DwtCText16        "Text16"
  409. #define DwtCSelection        "Selection"
  410. #define DwtCState        "State"
  411. #define DwtCShown        "Shown"
  412. #define DwtCInc            "Inc"
  413. #define DwtCPageInc        "PageInc"
  414. #define DwtCMaxValue        "MaxValue"
  415. #define DwtCMinValue        "MinValue"
  416. #define DwtCTranslations1     "Translations1"
  417. #define DwtCTranslations2     "Translations2"
  418. #define DwtCDefaultPosition    "DefaultPosition"
  419.  
  420. #define DwtCItems        "Items"            
  421. #define DwtCSelectedItems    "SelectedItems"            
  422. #define DwtCItemsCount        "ItemsCount"
  423. #define DwtCSelectedItemsCount    "SelectedItemsCount"
  424. #define DwtCVisibleItemsCount    "VisibleItemsCount"
  425. #define DwtCResize        "Resize"
  426. #define DwtCSingleSelection     "SingleSelection"
  427.  
  428. #define DwtCScaleWidth        "ScaleWidth"
  429. #define DwtCScaleHeight        "ScaleHeight"
  430. #define DwtCDecimalPoints    "DecimalPoints"
  431. #define DwtCShowValue        "ShowValue"
  432. #define DwtCShowValueAutomatic    "ShowValueAutomatic"
  433. #define DwtCSlider        "Slider"
  434. #define DwtCSliderPixmap    "SliderPixmap"
  435. #define DwtCBordHighlight    "BordHighlight"
  436. #define DwtCFillHighlight    "FillHighlight"
  437. #define DwtCAutoUnmanage    "AutoUnmanage"
  438.  
  439. #define DwtCSpacing        "Spacing"
  440. #define DwtCVisibleWhenOff    "VisibleWhenOff"
  441. #define DwtCShape        "Shape"
  442.  
  443. /* ------> Additonal classes for File Selection Widget */
  444.  
  445. #define DwtCSystemPreference    "SystemPreference"
  446. #define DwtCDirMask        "DirMask"
  447. #define DwtCRead        "Read"
  448. #define DwtCWrite        "Write"
  449. #define DwtCExecute        "Execute"
  450. #define DwtCDelete        "Delete"
  451. #define DwtCLabel        "Label"
  452. #define DwtCTitle        "Title"
  453. #define DwtCFileSearchProc    "FileSearchProc"
  454. #define DwtCDone        "Done"
  455. #define DwtCListUpdated        "ListUpdated"
  456. #define DwtCFiles        "Files"
  457. #define DwtCFileCount        "FileCount"
  458.  
  459. /* ------> Additonal classes for Command Box Widget */
  460.  
  461. #define DwtCPrompt              "Prompt"
  462. #define DwtCLines               "Lines"
  463. #define DwtCHistory             "History"
  464. #define DwtCPromptType        "PromptType"
  465. #define DwtCHistoryType        "HistoryType"
  466.  
  467.  
  468. /* 
  469.  * resource representation types 
  470.  */
  471.  
  472. #define    DwtRMenuWidget        "MenuWidget"
  473. #define DwtRFunction        "Function"
  474. #define DwtRTranslationTable    "TranslationTable"
  475. #define DwtRItems        "Items"            
  476. #define DwtRSelectedItems    "SelectedItems"            
  477. #define DwtRInt            "Int"
  478. #define DwtRCompress        "Compress"
  479.  
  480.  
  481. /*
  482.  * callback reasons 
  483.  */
  484.  
  485. #define DwtCRUnitInc             0
  486. #define DwtCRUnitDec             1
  487. #define DwtCRPageInc             2
  488. #define DwtCRPageDec             3
  489. #define DwtCRScrollStart         4
  490. #define DwtCRDrag                5
  491. #define DwtCRScrollEnd           6
  492. #define DwtCRToTop               7
  493. #define DwtCRToBottom            8
  494. #define DwtCRCancel              9
  495. #define DwtCRActivate            10
  496. #define DwtCRArm            11
  497. #define DwtCRDisarm            12
  498. #define DwtCRValueChanged         13
  499. #define DwtCRNo                 14
  500. #define DwtCRToPosition         15
  501. #define DwtCRMap                16
  502. #define DwtCRUnmap              17
  503. #define DwtCRPullDown           18
  504. #define DwtCRFocus              19
  505. #define DwtCRSingle             20
  506. #define DwtCRSingleConfirm        21
  507. #define DwtCRExtend            22
  508. #define DwtCRExtendConfirm        23
  509. #define DwtCRCommandEntered        24
  510. #define DwtCRCreate            25
  511. #define DwtCRHelpRequested           26
  512. #define DwtCRHelp                    26
  513. #define DwtCRSelection               27
  514. #define DwtCRClipboardDataRequest    28
  515. #define DwtCRClipboardDataDelete    29
  516. #define DwtCRYes            30
  517. #define DwtCRExpose            31
  518.  
  519.  
  520.  
  521.  
  522. /*
  523.  * typedefs and other DecW support structs
  524.  */
  525.  
  526. typedef void (*VoidProc) ();
  527.  
  528.  
  529. /*
  530.  * the externally visible callback structure, not the same as the
  531.  * toolkit's internal (intrinsic) callback struct
  532.  */
  533.  
  534. typedef struct 
  535. {
  536.     VoidProc    proc;
  537.     int        tag;
  538. }
  539.     DwtCallback, *DwtCallbackPtr;
  540.  
  541. typedef long DwtTextPosition;
  542.  
  543.  
  544.  
  545. /*
  546.  * the application is returned these structs on callbacks
  547.  */
  548.  
  549.  
  550. typedef struct                    /* returned by menu */
  551. {
  552.     int     reason;
  553.     Widget  s_widget;
  554.     char    *s_tag;
  555.     char    *s_callbackstruct;
  556. } DwtMenuCallbackStruct;
  557.  
  558.  
  559. typedef struct                    /* returned by scroll bar */
  560. {    int reason;
  561.      int value;
  562. } DwtScrollBarCallbackStruct;
  563.  
  564.  
  565. typedef struct                    /* returned by toggle button */
  566. {    int reason;
  567.      int value;
  568. } DwtTogglebuttonCallbackStruct;
  569.  
  570. typedef struct
  571. {
  572.     int          reason;
  573.     XExposeEvent *event;
  574.     Window     w;
  575. } DwtWindowCallbackStruct;                 /* returned by window widget */
  576.  
  577. typedef struct                    /* returned by scroll bar */
  578. {    int reason;
  579.      int value;
  580. } DwtScaleCallbackStruct;
  581.  
  582. typedef struct                    /* returned by list box */
  583. {    int  reason;
  584.      char *item;
  585.      int  item_length;
  586.      int  item_number;
  587. } DwtListBoxCallbackStruct;
  588.  
  589. typedef struct {
  590.     int     reason;
  591.     Widget  s_widget;
  592.     char    *s_tag;
  593.     char    *s_callbackstruct;
  594. } DwtRadioBoxCallbackStruct;
  595.  
  596.  typedef struct                                   /* returned by file select */
  597. {    int reason;
  598.      char *value;
  599.      int  value_len;
  600.      char *dirmask;
  601.      int  dirmask_len;
  602. } DwtFileSelectionCallbackStruct;
  603.  
  604. typedef struct                                   /* returned by command box */
  605. {    int reason;
  606.      int length;
  607.      char * value;
  608. } DwtCommandWindowCallbackStruct;
  609.  
  610.  
  611.  
  612. /*
  613.  * externals for library routines go here
  614.  */
  615.  
  616. /*----------------------------------*/
  617. /* Cut and Paste external routines  */
  618. /*----------------------------------*/
  619.  
  620. /*  Commented out for now */
  621.  
  622. extern int DwtBeginCopyToClipboard();
  623. extern int DwtCopyToClipboard();
  624. extern int DwtEndCopyToClipboard();
  625. extern void DwtCancelCopyToClipboard();
  626. extern int DwtReCopyToClipboard();
  627. extern int DwtUndoCopyToClipboard();
  628. extern int DwtClipboardLock();
  629. extern int DwtClipboardUnlock();
  630. extern int  DwtCopyFromClipboard();
  631. extern int DwtInquireNextPasteCount();
  632. extern int DwtInquireNextPasteFormat();
  633. extern int DwtInquireNextPasteLength();
  634. extern int DwtListPendingItems();
  635.  
  636. /*----------------------------------*/
  637. /* Label widget external routines   */
  638. /*----------------------------------*/
  639.  
  640. extern Widget DwtLabel(); 
  641. extern Widget DwtLabelCreate(); 
  642.  
  643. /*---------------------------------------*/
  644. /* Pushbutton widget external routines   */
  645. /*---------------------------------------*/
  646.  
  647. extern Widget DwtPushButton(); 
  648. extern Widget DwtPushButtonCreate(); 
  649.  
  650. /*-----------------------------------*/
  651. /* Toggle widget external routines   */
  652. /*-----------------------------------*/
  653.  
  654. extern Widget DwtToggleButton(); 
  655. extern Widget DwtToggleButtonCreate(); 
  656. extern unsigned int DwtToggleButtonGetState(); 
  657. extern void DwtToggleButtonSetState(); 
  658.  
  659. /*--------------------------------------*/
  660. /* Radio box widget external routines   */
  661. /*--------------------------------------*/
  662.  
  663. extern Widget DwtRadioBox(); 
  664. extern Widget DwtRadioBoxCreate(); 
  665.  
  666. /*---------------------------------------*/
  667. /* Dialog box widget external routines   */
  668. /*---------------------------------------*/
  669.  
  670. extern Widget DwtDialogBox(); 
  671. extern Widget DwtDialogBoxCreate(); 
  672.  
  673. /*---------------------------------*/
  674. /* Menu widget external routines   */
  675. /*---------------------------------*/
  676.  
  677. extern Widget DwtMenu(); 
  678. extern Widget DwtMenuCreate(); 
  679.  
  680. /*------------------------------------*/
  681. /* Menubar widget external routines   */
  682. /*------------------------------------*/
  683.  
  684. extern Widget DwtMenuBar(); 
  685. extern Widget DwtMenuBarCreate(); 
  686.  
  687. /*--------------------------------------*/
  688. /*  Pulldown widget external routines   */
  689. /*--------------------------------------*/
  690.  
  691. extern Widget DwtPullDownMenuEntry(); 
  692. extern Widget DwtPullDownMenuEntryCreate(); 
  693.  
  694. /*----------------------------------------*/
  695. /*  Scroll bar widget external routines   */
  696. /*----------------------------------------*/
  697.  
  698. extern Widget DwtScrollBar(); 
  699. extern Widget DwtScrollBarCreate(); 
  700. extern void DwtScrollBarGetSlider(); 
  701. extern void DwtScrollBarSetSlider(); 
  702.  
  703. /*--------------------------------------*/
  704. /*  List box widget external routines   */
  705. /*--------------------------------------*/
  706.  
  707. extern Widget DwtListBox(); 
  708. extern Widget DwtListBoxCreate(); 
  709. extern void DwtListBoxAddItem(); 
  710. extern void DwtListBoxDeleteItem(); 
  711.  
  712. /*-----------------------------------------*/
  713. /*  Main window widget external routines   */
  714. /*-----------------------------------------*/
  715.  
  716. extern Widget DwtMainWindow(); 
  717. extern Widget DwtMainWindowCreate(); 
  718. extern void DwtMainSetAreas(); 
  719.  
  720. /*--------------------------------------------*/
  721. /*  Command window widget external routines   */
  722. /*--------------------------------------------*/
  723.  
  724. extern Widget DwtCommandWindow(); 
  725. extern Widget DwtCommandWindowCreate(); 
  726. extern void DwtCommandSet(); 
  727. extern void DwtCommandAppend(); 
  728. extern void DwtCommandErrorMessage(); 
  729. extern void DwtCommandPopup(); 
  730.  
  731. /*-----------------------------------------*/
  732. /*  Message box widget external routines   */
  733. /*-----------------------------------------*/
  734.  
  735. extern Widget DwtMessageBox(); 
  736. extern Widget DwtMessageBoxCreate(); 
  737.  
  738. /*--------------------------------------------*/
  739. /*  File selection widget external routines   */
  740. /*--------------------------------------------*/
  741.  
  742. extern Widget DwtFileSelection(); 
  743. extern Widget DwtFileSelectionCreate(); 
  744.  
  745. /*-----------------------------------------*/
  746. /*  Caution box widget external routines   */
  747. /*-----------------------------------------*/
  748.  
  749. extern Widget DwtCautionBox(); 
  750. extern Widget DwtCautionBoxCreate(); 
  751.  
  752. /*-----------------------------------*/
  753. /*  Scale widget external routines   */
  754. /*-----------------------------------*/
  755.  
  756. extern Widget DwtScale(); 
  757. extern Widget DwtScaleCreate(); 
  758. extern int DwtGetSlider(); 
  759. extern void DwtSetSlider(); 
  760.  
  761. /*--------------------------------------*/
  762. /*  Work box widget external routines   */
  763. /*--------------------------------------*/
  764.  
  765. extern Widget DwtWorkBox(); 
  766. extern Widget DwtWorkBoxCreate(); 
  767. extern void DwtWorkSetScale(); 
  768.  
  769. /*---------------------------------------*/
  770. /*  Separator widget external routines   */
  771. /*---------------------------------------*/
  772.  
  773. extern Widget DwtSeparator(); 
  774. extern Widget DwtSeparatorCreate(); 
  775.  
  776. /*------------------------------------*/
  777. /*  Option widget external routines   */
  778. /*------------------------------------*/
  779.  
  780. extern Widget DwtOptionMenu(); 
  781. extern Widget DwtOptionMenuCreate(); 
  782.  
  783. /*----------------------------------*/
  784. /*  Pane widget external routines   */
  785. /*----------------------------------*/
  786.  
  787. extern Widget DwtPane(); 
  788. extern Widget DwtPaneCreate(); 
  789. extern void DwtPaneAddWidget(); 
  790.  
  791. /*---------------------------------------------*/
  792. /*  Color selection widget external routines   */
  793. /*---------------------------------------------*/
  794.  
  795. extern Widget DwtColorSelection(); 
  796. extern Widget DwtColorSelectionCreate(); 
  797.  
  798. /*-----------------------------------*/
  799. /* S text widget external routines   */
  800. /*-----------------------------------*/
  801.  
  802. extern Widget DwtSText(); 
  803. extern Widget DwtTextCreate();  /* <- one of these,     */
  804. extern Widget DwtSTextCreate(); /* <-      but not both */
  805. extern char *DwtSTextGetString(); 
  806. extern void DwtSTextSetString(); 
  807. extern void DwtSTextReplace(); 
  808. extern unsigned int DwtSTextGetEditable(); 
  809. extern void DwtSTextSetEditable(); 
  810. extern int DwtSTextGetMaxLength(); 
  811. extern void DwtSTextSetMaxLength(); 
  812. extern char *DwtSTextGetSelection(); 
  813. extern void DwtSTextSetSelection(); 
  814.  
  815. /*-----------------------------------*/
  816. /* Text widget external routines   */
  817. /*-----------------------------------*/
  818.  
  819. extern DwtTextPosition DwtTextGetTopPosition();
  820. extern void DwtTextSetTopPosition(); 
  821. extern DwtTextPosition DwtTextGetInsertionPosition(); 
  822. extern void DwtTextSetInsertionPosition(); 
  823. extern DwtTextSource DwtTextGetSource();
  824. extern void DwtTextSetSource(); 
  825. extern void DwtTextShowPosition(); 
  826. extern void DwtTextScroll();    
  827. extern void DwtTextDisableRedisplay(); 
  828. extern void DwtTextEnableRedisplay(); 
  829.  
  830.  
  831. /*-----------------------------------*/
  832. /* window widget external routines   */
  833. /*-----------------------------------*/
  834.  
  835. extern Widget DwtWindow();
  836. extern Widget DwtWindowCreate();
  837.  
  838. /*-----------------------------------------*/
  839. /* scrollwindow widget external routines   */
  840. /*-----------------------------------------*/
  841.  
  842. extern Widget DwtScrollWindow();
  843. extern Widget DwtScrollWindowCreate();
  844. extern void DwtScrollWindowSetAreas();
  845.  
  846.  
  847.  
  848.